import axios from '../libs/api.request.js'



export const findAll = data =>{
    return axios.request({
        url: "lianxiren/findAll",
        method: "post",
        data:data
    })
}

//
export const save = data=>{
    return axios.request({
        url: "lianxiren/save",
        method: "post",
        data:data
    })
}

export const updata = data=>{
    return axios.request({
        url: "lianxiren/updata",
        method: "put",
        data:data
    })
}


export const remove = data=>{
    return axios.request({
        url: "lianxiren/remove",
        method: "delete",
        data:data
    })
}

export const areaSaveUpdate = data => {
    return data.id ? updata(data) : save(data);
};


export const findStation = data =>{
    return axios.request({
        url:"lianxiren/findStation",
        method:"get",
        data:null
    })
}


export const findCompany = data =>{
    return axios.request({
        url:"lianxiren/findCompany",
        method:"get",
        data:null
    })
}


export const findType = data =>{
    return axios.request({
        url:"lianxiren/findType",
        method:"get",
        data:null
    })
}




export const findsanji = data =>{
    return axios.request({
        url:"sanji/list",
        method:"get",
        data:null
    })
}

